package com.huaxiafinance.management.mapper;


import com.huaxiafinance.management.dto.request.HandleDto;
import com.huaxiafinance.management.dto.request.QueryWithdrawalsAuditDto;
import com.huaxiafinance.management.model.PartnerWithdrawals;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface PartnerWithdrawalsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PartnerWithdrawals record);

    int insertSelective(PartnerWithdrawals record);

    PartnerWithdrawals selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PartnerWithdrawals record);

    int updateByPrimaryKey(PartnerWithdrawals record);

    List<PartnerWithdrawals> queryAll(HandleDto dto);

    int count(HandleDto dto);

    PartnerWithdrawals selectById(@Param("id") Integer id);

    List<Map> queryWithdrawalsList(QueryWithdrawalsAuditDto dto);
    Integer countWithdrawalsList(QueryWithdrawalsAuditDto dto);
    Map getInfo(Integer id);

    int countNum(@Param("startTime")Date startTime,
              @Param("endTime")Date endTime,@Param("userUuid")String userUuid);


}